package com.emin.platform.productCenter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.ImportResource;
import org.springframework.core.annotation.Order;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = {"com.emin"})
@EnableEurekaClient
@EnableWebMvc
@EnableAsync
@EnableSwagger2
@EntityScan(basePackages = {"com.emin.platform.productCenter.entity"})
@EnableDiscoveryClient
@ImportResource({"classpath:spring-dao.xml"})
@EnableAspectJAutoProxy(proxyTargetClass = false)
@Order(1)
public class ProductCenterApplication {
    public ProductCenterApplication() {
    }

    public static void main(String[] args) {
        SpringApplication.run(ProductCenterApplication.class, args);
    }
}
